home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / warp / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-12  |  5.1 KB  |  183 lines

  1. # Copyright (c) 1988 Regents of the University of California.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms are permitted
  5. # provided that the above copyright notice and this paragraph are
  6. # duplicated in all such forms and that any documentation,
  7. # advertising materials, and other materials related to such
  8. # distribution and use acknowledge that the software was developed
  9. # by the University of California, Berkeley.  The name of the
  10. # University may not be used to endorse or promote products derived
  11. # from this software without specific prior written permission.
  12. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  13. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  14. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. #    @(#)Makefile    5.1 (Berkeley) 5/11/90
  17. #
  18.  
  19. #CFLAGS = -DBSD42 -O
  20. CFLAGS = -O
  21. BINDIR=    /usr/skunk/games
  22. WARPLIB= /usr/skunk/games/lib/warp
  23.  
  24. INCL=    EXTERN.h INTERN.h bang.h config.h init.h intrp.h move.h object.h\
  25.     patchlevel.h play.h score.h sig.h term.h them.h us.h util.h version.h\
  26.     warp.h weapon.h
  27. SRCS=    bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
  28.     them.c us.c util.c version.c warp.c weapon.c
  29. OBJS=    bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \
  30.     them.o us.o util.o version.o warp.o weapon.o
  31.  
  32. warp: ${OBJS}
  33.     ${CC} ${OBJS} -o $@ -lsocket -ltermlib -lm
  34.  
  35. tags: ${INCL} ${SRCS}
  36.     ctags -w ${INCL} ${SRCS}
  37.  
  38. clean:
  39.     rm -f core ${OBJS}
  40.  
  41. clobber: clean
  42.     rm -f warp
  43.  
  44. smap.0: smp.0 sm
  45.     sm <smp.0 >smap.0
  46. smap.1: smp.1 sm
  47.     sm <smp.1 >smap.1
  48. smap.2: smp.2 sm
  49.     sm <smp.2 >smap.2
  50. smap.3: smp.3 sm
  51.     sm <smp.3 >smap.3
  52. smap.4: smp.4 sm
  53.     sm <smp.4 >smap.4
  54. smap.5: smp.5 sm
  55.     sm <smp.5 >smap.5
  56. smap.6: smp.6 sm
  57.     sm <smp.6 >smap.6
  58. smap.7: smp.7 sm
  59.     sm <smp.7 >smap.7
  60. sm: sm.c
  61.     ${CC} sm.c -o $@
  62.  
  63. depend:    ${INCL} ${SRCS} Mdepend.awk
  64.     cp Makefile Makefile-
  65.     awk -f Mdepend.awk ${INCL} ${SRCS} | ed Makefile > /dev/null
  66.     -touch depend
  67.  
  68. # DO NOT DELETE THIS LINE - "make depend" requires it.
  69. # Generated by Mdepend.awk version 1.1(01)
  70. # The dependencies were generated by examining the following files:
  71. #     EXTERN.h INTERN.h bang.h config.h init.h intrp.h move.h object.h
  72. #     patchlevel.h play.h score.h sig.h term.h them.h us.h util.h version.h
  73. #     warp.h weapon.h bang.c init.c intrp.c move.c object.c play.c score.c
  74. #     sig.c term.c them.c us.c util.c version.c warp.c weapon.c
  75. bang.o: EXTERN.h warp.h object.h move.h sig.h term.h them.h INTERN.h bang.h\
  76.     config.h
  77. init.o: EXTERN.h warp.h bang.h object.h move.h play.h score.h term.h them.h\
  78.     us.h util.h weapon.h INTERN.h init.h config.h
  79. intrp.o: EXTERN.h warp.h sig.h util.h term.h INTERN.h intrp.h config.h
  80. move.o: EXTERN.h warp.h bang.h object.h move.h play.h score.h term.h them.h\
  81.     us.h util.h weapon.h INTERN.h move.h config.h
  82. object.o: EXTERN.h warp.h INTERN.h object.h config.h
  83. play.o: EXTERN.h warp.h bang.h score.h object.h move.h term.h them.h us.h\
  84.     util.h weapon.h INTERN.h play.h config.h
  85. score.o: EXTERN.h warp.h intrp.h object.h play.h sig.h term.h us.h util.h\
  86.     weapon.h INTERN.h score.h config.h
  87. sig.o: EXTERN.h warp.h play.h score.h term.h util.h INTERN.h sig.h config.h
  88. term.o: EXTERN.h warp.h bang.h intrp.h object.h play.h score.h sig.h us.h\
  89.     util.h weapon.h INTERN.h term.h config.h
  90. them.o: EXTERN.h warp.h bang.h object.h move.h score.h term.h us.h util.h\
  91.     weapon.h INTERN.h them.h config.h
  92. us.o: EXTERN.h warp.h bang.h object.h play.h sig.h term.h util.h weapon.h\
  93.     INTERN.h us.h config.h
  94. util.o: EXTERN.h warp.h object.h sig.h term.h INTERN.h util.h config.h
  95. version.o: patchlevel.h INTERN.h version.h
  96. warp.o: INTERN.h warp.h EXTERN.h bang.h init.h intrp.h object.h move.h play.h\
  97.     score.h sig.h term.h them.h us.h util.h version.h weapon.h config.h
  98. weapon.o: EXTERN.h warp.h bang.h object.h move.h score.h sig.h term.h them.h\
  99.     us.h util.h INTERN.h weapon.h config.h
  100. # ALSO DO NOT DELETE THIS LINE - "make depend" requires it.
  101.  
  102.  
  103. install: $(BINDIR) $(WARPLIB) $(WARPLIB)/save\
  104.      $(BINDIR)/warp $(WARPLIB)/warp.doc $(WARPLIB)/warp.news\
  105.      $(WARPLIB)/warp.top $(WARPLIB)/warp.lowtop $(WARPLIB)/warp.funtop\
  106.      $(WARPLIB)/warp.log\
  107.      $(WARPLIB)/smap.0 $(WARPLIB)/smap.1 $(WARPLIB)/smap.2\
  108.      $(WARPLIB)/smap.3 $(WARPLIB)/smap.4 $(WARPLIB)/smap.5\
  109.      $(WARPLIB)/smap.6 $(WARPLIB)/smap.7
  110.     touch install
  111.  
  112. $(BINDIR):
  113.     mkdir $@
  114.     chmod 755 $@
  115.  
  116. $(WARPLIB):
  117.     mkdir $@
  118.     chmod 755 $@
  119.  
  120. $(WARPLIB)/save:
  121.     mkdir $@
  122.     chmod 777 $@
  123.  
  124. $(BINDIR)/warp: warp
  125.     cp $? $@
  126.     chmod 711 $@
  127.  
  128. $(WARPLIB)/warp.doc: warp.doc
  129.     cp $? $@
  130.     chmod a+r $@
  131.  
  132. $(WARPLIB)/warp.news: warp.news
  133.     cp $? $@
  134.     chmod a+r $@
  135.  
  136. $(WARPLIB)/warp.top:
  137.     -touch $@
  138.     chmod a+rw $@
  139.  
  140. $(WARPLIB)/warp.lowtop:
  141.     -touch $@
  142.     chmod a+rw $@
  143.  
  144. $(WARPLIB)/warp.funtop:
  145.     -touch $@
  146.     chmod a+rw $@
  147.  
  148. $(WARPLIB)/warp.log:
  149.     -touch $@
  150.     chmod a+rw $@
  151.  
  152. $(WARPLIB)/smap.0: smap.0
  153.     cp $? $@
  154.     chmod a+r $@
  155.  
  156. $(WARPLIB)/smap.1: smap.1
  157.     cp $? $@
  158.     chmod a+r $@
  159.  
  160. $(WARPLIB)/smap.2: smap.2
  161.     cp $? $@
  162.     chmod a+r $@
  163.  
  164. $(WARPLIB)/smap.3: smap.3
  165.     cp $? $@
  166.     chmod a+r $@
  167.  
  168. $(WARPLIB)/smap.4: smap.4
  169.     cp $? $@
  170.     chmod a+r $@
  171.  
  172. $(WARPLIB)/smap.5: smap.5
  173.     cp $? $@
  174.     chmod a+r $@
  175.  
  176. $(WARPLIB)/smap.6: smap.6
  177.     cp $? $@
  178.     chmod a+r $@
  179.  
  180. $(WARPLIB)/smap.7: smap.7
  181.     cp $? $@
  182.     chmod a+r $@
  183.